package com.smt.modules.bus.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import com.smt.common.base.BaseEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 短信流水
 * 
 * @author murong
 * @email 981620741@qq.com
 * @date 2018-10-08 14:43:49
 */
@Data
@TableName("sms_stream")
public class StreamEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId
	private Long id;
	/**
	 * 短信签名
	 */
	private String signName;
	/**
	 * 短信模板ID
	 */
	private String code;
	/**
	 * 手机号多个用逗号隔开
	 */
	private String phone;
	/**
	 * 模板中的变量的json格式
	 */
	private String param;
	/**
	 * 扩展字段
	 */
	private String extend;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 发送成功标识 1成功0失败
	 */
	private Integer isSuccess;
	/**
	 * 时间戳
	 */
	private Date timeStamp;

	public StreamEntity() {
	}

	public StreamEntity(String signName, String code, String phone, String param, Date createDate, Integer isSuccess) {
		this.signName = signName;
		this.code = code;
		this.phone = phone;
		this.param = param;
		this.createTime = createDate;
		this.isSuccess = isSuccess;
	}

}
